import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @Author liangzai
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入二叉树节点：");
        List<Integer> num = new ArrayList<>();
        int index = 0;
        while(true){
            System.out.println("节点"+index+":");
            num.add(scanner.nextInt());
        }
        TreeNode root  = new TreeNode();


    }

    public static TreeNode creatTree(List<Integer> list){
        return null;
    }

    public static int countLeaf(TreeNode root){
        if(root == null){
            return 0;
        }
        if(root.left == null && root.right == null){
            return 1;
        }
        return countLeaf(root.left) + countLeaf(root.right);
    }


    public static void showTree(TreeNode root){
        if (root == null) {
            return ;
        }

    }

}
